#flash= flash[:notice]
#content-title
  %h1 Welcome!
  %p Get logged!
- if logged_in?
  You are logged in as - 
  =current_user.login
- else
  You are not currently logged in.
#event-listings
  .listing
    - form_for :session, @sessions, :url => session_url do |form| 
      %table
        %tr
          %th Login:
          %th= form.text_field :login
          %th= error_message_on :user, :login
        %tr
          %th Password:
          %td= form.password_field :password
          %td= error_message_on :user, :password
      = submit_tag 'Login'